package com.homestay.service;

import com.homestay.beans.Home;
import com.homestay.exception.HomeException;

import java.util.List;

public interface HomeService {

    List<Home> query(String h_type, String state, String num);

    int add(Home home) throws HomeException;

    int deleteById(String id) throws HomeException;

    Home queryById(String id);

    int update(Home home);

    int updateStateById(String homeId, String state);

}
